/* ========================================================================== */
/*   IRSimulatie.cpp                                                          */
/*   (c) 2012 Team 7 Hogeschool Utrecht ICT TI                                */
/*		Lars Stolwijk, Gerben Boot, Guido van Hienen, Marcel Boelen			  */
/*                                                                            */
/*   Send signals that would normally come from the IRSensor				  */
/* ========================================================================== */
#include "IRSimulatie.h"

void IRSimulatie::main()
{
	IRSTimer.set(2 S);
	RTOS::event e = wait(  );
	theOperationController->PlayEndGame();
	IRSTimer.set(18 S);
	e = wait(  );
	theProcessHitController->WriteIRResult(IRHitEvent(99, 99));
	theProcessHitController->Hit();
	/*
	for(int i = 0; i<5; i++){
		IRSTimer.set(2 S);
		e = wait(  );
		theProcessHitController->WriteIRResult(IRHitEvent(i, i*2));
		theProcessHitController->Hit();
	}*/
	
	//IRSTimer.set(5 S);
	//e = wait(  );
	//theReadLogHandler->ReadLog();
	
	IRSTimer.set(7 S);
	e = wait(  );
	theOperationController->PlayEndGame();
	
	IRSTimer.set(5 S);
	e = wait(  );
	theReadLogHandler->ReadLog();
	
	e = wait(  );
	std::cout << "BOEH\n";
}
